package com.example.demo.dao;

import com.example.demo.pojo.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface IUserDao extends JpaRepository<User,Integer> {

    User findByUid(Integer uid);

    User findByUsernameAndPassword(String username,String password);

    @Override
    <S extends User> S save(S s);
}
